package com.mornd.gulimall.ware.controller;

import com.mornd.gulimall.common.core.result.AjaxResult;
import com.mornd.gulimall.ware.entity.WareSku;
import com.mornd.gulimall.ware.service.IWareSkuService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

import static com.mornd.gulimall.common.core.result.AjaxResult.success;

/**
 * <p>
 * 商品库存 前端控制器
 * </p>
 *
 * @author mornd
 * @since 2023-07-29
 */
@RestController
@RequestMapping("/ware/wareSku")
public class WareSkuController {
    @Resource
    private IWareSkuService wareSkuService;

    @GetMapping
    public AjaxResult list(WareSku wareSku) {
        return success(wareSkuService.list(wareSku));
    }

}
